#include "pcap_wrapper.h"

#include <thread>

int main(int argc, char *argv[])
{
    char filter_string[] = "port 22";
    char dev_name[]      = "enp3s0";

    PcapWrapper pcap(dev_name, filter_string);
    if (pcap.initialize()) {
        pcap.run();
    }

    for (int i = 0; i < 5; i++) {
        std::this_thread::sleep_for(std::chrono::seconds(1));
    }
    pcap.destroy();
    return 0;
}